#region Microsoft Public License
/*
 * (c) Copyright Chenjun Wu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UTable.Input;
using UTable.Input.MultiTouch;

namespace UTable.Objects.Handlers
{
	/// <summary>
	/// Just handle raw multi-touch event
	/// </summary>
	public class RawEventHandler: MultiTouchEventHandlerClass
	{
		public RawEventHandler(IObject holder)
		{
			Holder = holder;
		}

		public event MultiTouchRawEventHandler MultiTouch;

		public override void OnMultiTouch(MultiTouchEventArgs args)
		{
			if (MultiTouch != null)
			{
				MultiTouch(Holder, args);
			}
		}

		public IObject Holder { get; set; }
	}

	public delegate void MultiTouchRawEventHandler(IObject sender, MultiTouchEventArgs args);
}
